package com.jyu.apts.dto;

import com.jyu.apts.entity.Role;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class RoleDto{
	long id;
	String name;
	String role;
	public RoleDto convert(Role role) {
		setId(role.getId());
		setName(role.getName());
		setRole(role.getStringRole());
		return this;
	}
	
}
